﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="RaisePurchaseOrderList.aspx.cs" Inherits="PresentationLayer.RaisePurchaseOrderList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div align="center">
            <h2>Raise Purchase Order List</h2>
            <p>&nbsp;</p>
            <table>
                <tr>
                    <td>
                        <fieldset>
                            <legend>Filter By</legend>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblSupplierName" runat="server" Text="Supplier Name"></asp:Label></td>
                                    <td>
                                        <asp:DropDownList ID="ddlSupplierName" runat="server" CssClass="form-control"></asp:DropDownList></td>
                                    <td>
                                        <asp:Button ID="btnFilter" runat="server" Text="Filter" OnClick="btnFilter_Click" CssClass="btn-info" /></td>
                                </tr>
                            </table>
                        </fieldset>
                    </td>
                </tr>
            </table>
            <br />
            <hr />
            <br />
            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
            <asp:GridView ID="gvRaisePOList" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped table-bordered" width="60%">
                <Columns>
                    <asp:TemplateField HeaderText="Supplier ID" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblSupplierIdGV" runat="server" Text='<%# Eval("SupplierId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Supplier Name">
                        <ItemTemplate>
                            <asp:Label ID="lblSupplierNameGV" runat="server" Text='<%# Eval("SupplierName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Quantity">
                        <ItemTemplate>
                            <asp:Label ID="lblQuantityGV" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="View Detail">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnViewDetail" runat="server" OnClick="lbtnViewDetail_Click">View Detail</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Button ID="btnSelectMore" runat="server" Text="Select More Items for Purchasing" OnClick="btnSelectMore_Click" CssClass="btn" />
            <br />
            <br />
        </div>
</asp:Content>
